<template>
  <div>
    <el-row :gutter="15">
      <el-form ref="form" :model="form" size="medium" label-width="100px" v-bind:disabled="isEditing">
        <el-col :span="24">
          <el-form-item label="车牌号">
            <el-input v-model="form.carsMsg.licenseNumber" placeholder="请输入车牌号" show-word-limit clearable
                      :style="{width: '100%'}"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item label="物业名称" prop="propertyManagement.propertyName">
            <el-input v-model="form.propertyManagement.propertyName" placeholder="物业名称" show-word-limit clearable
                      :style="{width: '100%'}"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item label="停车场" prop="carsHome.chname">
            <el-input v-model="form.carsHome.chname" placeholder="停车场" show-word-limit clearable
                      :style="{width: '100%'}"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item label="设备名称" prop="carsHome.eqname">
            <el-input v-model="form.carsHomeEq.eqname" placeholder="设备名称" clearable :style="{width: '100%'}">
            </el-input>
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item label="设备IP" prop="carsHomeEq.eqip">
            <el-input v-model="form.carsHomeEq.eqip" placeholder="停车场" show-word-limit clearable
                      :style="{width: '100%'}"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item label="订单金额" prop="fee">
            <el-input v-model="form.fee" placeholder="停车场" show-word-limit clearable
                      :style="{width: '100%'}"></el-input>
          </el-form-item>
        </el-col>

        <el-col :span="24" style="text-align:center">
          <el-button @click="cancel" :disabled="false">返回</el-button>
        </el-col>
      </el-form>
    </el-row>
  </div>
</template>
<script>
import {getptApiList} from "@/api/pxy-report/paytype";
import {updatePark} from "@/api/pxy-report/park";
import path from "path";

export default {
  name: "Park",
  components: {},
  props: [],
  data() {
    return {
      payType:[],
      isEditing: false,
      form: {
        carsMsg:{
          licenseNumber:''
        },
        propertyManagement:{
          propertyName:''
        },
        carsHome:{
          chname:''
        },
        carsHomeEq:{
          eqname:'',
          eqip:''
        },
        fee:''
      },
    }
  },
  computed: {},
  watch: {},
  created() {
    this.form = this.$route.query.form

    const isEditing = this.$route.query.isEditing;
    // this.isEditing= JSON.parse(this.isEditing).booleanValue
    // this.isEditing = !!users
    this.isEditing = isEditing

    console.log(this.form)
  },
  mounted() {

  },
  methods: {
    // 取消按钮
    cancel() {
      this.$store.dispatch('tagsView/delAllViews', this.$router);
      this.$router.push('exception')
    },
  }
}

</script>
<style>
</style>
